package admin

import (
	"context"
	"grpc.getaway.adminspro.padmins.com/internal/rpc/module/admin/roleLogic"
	pbAdmin "grpc.getaway.adminspro.padmins.com/pkg/proto/admin"
)

func (rpc *admin) AdminRoleList(ctx context.Context, pb *pbAdmin.AdminRoleListReq) (*pbAdmin.AdminRoleListResp, error) {
	list := roleLogic.List()
	return &pbAdmin.AdminRoleListResp{
		Status: list["status"],
	}, nil
}
